import axios from 'axios';
import {API_NEW_VERSION, ALL_SERVICE_API} from '../api';

export const getAllPartnerProfitSummaries = params => {
  return axios.get(API_NEW_VERSION + 'partner_profit_summarys_statistics', {params: params});
};

export const getAllPartnerProfitSummariesByPartnerId = partnerId => {
  return axios.get(API_NEW_VERSION + 'partners_profit_summary_find_by_partner_id', {params: {partnerId: partnerId}});
};

export const getAllPartnerProfitSummariesByPartnerIdVo = partnerId => {
  return axios.get(ALL_SERVICE_API + '/truck-load-partner-profit-summaries/vo/by-partnerId', {params: {partnerId: partnerId}});
};

export const getTruckLoadProfitSummaryList = params => {
  return axios.get(ALL_SERVICE_API + '/truck-load-partner-profit-summaries/vo', {params: params});
};

export const getTruckLoadProfitSummarystatics = params => {
  return axios.get(ALL_SERVICE_API + '/truck-load-partner-statics', {params: params});
};
